package com.coocaa.aries.jmeter.biz.impl;

import com.coocaa.aries.core.base.BaseBizImpl;
import com.coocaa.aries.jmeter.biz.IExtTestCaseBiz;
import com.coocaa.aries.jmeter.entity.ExtTestCaseInfoEntity;
import com.coocaa.aries.jmeter.mapper.IExtTestCaseMapper;
import org.springframework.stereotype.Service;

/**
 * @author : bijiahao
 * @date : 2019/4/9.
 * @description: 测试用例 biz接口实现
 * <p> </p>
 */
@Service
public class ExtTestCaseBizImpl extends BaseBizImpl<IExtTestCaseMapper, ExtTestCaseInfoEntity> implements IExtTestCaseBiz {

    @Override
    public void updateStatus(Integer id, Integer status) {
        ExtTestCaseInfoEntity update = new ExtTestCaseInfoEntity();
        update.setId(id);
        update.setStatus(status);
        updateById(update);
    }

    @Override
    public void updateStatusAndReportDir(Integer id, String reportDir, Integer status) {
        ExtTestCaseInfoEntity update = new ExtTestCaseInfoEntity();
        update.setId(id);
        update.setStatus(status);
        update.setReportFileDir(reportDir);
        updateById(update);
    }
}
